<div class="main preview-table">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">内业>责任落实>
      <span class="fs-theme-color">工程用表</span>
      </span>
    </div>
    <go-back></go-back>
  </div>
  <div class="main-content">
    <div class="search-info">
      <div class="container-header fs-16">
        <span>表格预览</span>
      </div>
    </div>
    <div class="img-box"><img ng-src="{{vm.getTemplateSrc()}}"></div>
    <div class="create-table">
      <div class="create-table-btn-div">
        <a class="create-table-btn fs-22"
          ui-sref="iterationTable({name: vm.name, id: vm.id, historyId: '', boxId: vm.boxId, type: 1})"><i class="iconfont icon-chuangjian-copy icon-middle icon-create fs-22"></i>创&nbsp;建</a>
      </div>
      <div class="history-btn-div">
        <span class="history-btn-brief">历史记录</span>
        <a class="history-btn fr"
          ng-show="vm.historyRecord.length > 0"
          ng-click="vm.$clearAll()">清除记录</a>
      </div>
      <div class="table-history"
        ng-show="vm.historyRecord.length > 0">
        <div class="history-record"
          ng-repeat="item in vm.historyRecord">
          <div class="record-time fs-12"><span ng-show="vm.isShowToday">今天-</span>{{item.date}}</div>
          <div class="history-record-detail fs-12" ng-repeat="value in item.list">
            <div class="history-record-detail-brief"
              ui-sref="iterationTable({name: vm.name, id: vm.id, historyId: value.id, boxId: vm.boxId, type: 2})">
              <i class="iconfont icon-middle icon-word-copy"></i>
              <label class="history-record-creater">创建人：{{value.creatorInfo.fullName}}</label>
              <span class="history-write-time fr">{{value.createdTime | date: "HH:mm"}}</span>
            </div>
            <i class="iconfont icon-cha fs-12" ng-click="vm.$delete(value, item, $index)"></i>
          </div>
        </div>
      </div>
      <div class="no-has-data" ng-show="vm.historyRecord.length < 1">
        <div class="no-has-history-data"></div>
        <div class="text-center fs-16">这里暂无文档记录！</div>
      </div>
    </div>
  </div>
</div>